package org.atlantis.grosbeak.cable.template;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 渲染模板。当ActionMethod执行完毕后，会进行转跳，而转跳的结果就是 此结果的实现类。
 * 
 * @author <a href="mailto:seenoevil.cn@gmail.com">SeeNoEvil</a>
 * 
 */
public interface Template {
	
	/**
	 * 跳转。
	 * @param sc
	 * @param request
	 * @param response
	 * @throws Exception
	 */
	void render(ServletContext sc, HttpServletRequest request,
			HttpServletResponse response) throws Exception;
}
